#ifndef _TES_RAY_H_
#define _TES_RAY_H_

#include "TesVector3.h"
class TesPlane;

class TesRay {
public:
	float t;
	TesVector3 Org;
	TesVector3 Dir;

	TesRay();
	TesRay(const TesVector3&  org, const TesVector3& dir);
	TesVector3 getNearestPoint(TesVector3& Point);
	bool Collide(TesRay& Other, TesVector3* hitPos);
	bool Collide(TesPlane& Plane, TesVector3* hitPos);
	bool checkPtIn(TesVector3& Point);
};
#endif